import http from "../utils/request";

//部门
export const getDept = (params) => {
    console.log(params, 'params')
    // 返回部门列表
    return http.get('/dept/getDept', params)
}
export const addDept = (data) => {
    return http.post('/dept/add', data)
}

export const editDept = (data) => {
    return http.post('/dept/edit', data)
}

export const delDept = (data) => {
    return http.post('/dept/del', data)
}
export const batchRemove = (data) => {
    return http.post('/dept/bat', data)
}

//员工
export const getStaff = (params) => {
    console.log(params, 'params')
    // 返回部门列表
    return http.post('/staff/getStaff', params)
}
export const addStaff = (data) => {
    return http.post('/staff/addStaff', data)
}

export const editStaff = (data) => {
    return http.post('/staff/edit', data)
}

export const delStaff = (data) => {
    return http.post('/staff/del', data)
}
export const batchRemove2 = (data) => {
    return http.post('/staff/bat', data)
}